# Makefile to install help files
# $Id: Makefile.in 423 2006-07-15 22:15:17Z jon $

INSTALL		= @INSTALL@
INSTALL_DATA	= @INSTALL_DATA@
RM		= @RM@

prefix		= @prefix@
exec_prefix	= @execprefix@
datarootdir	= $(DESTDIR)@datarootdir@
uhelpdir	= ${prefix}/help/users
ohelpdir	= ${prefix}/help/opers

SYMLINKS	= topic accept cmode admin names links away whowas \
		version kick who invite quit join list nick oper part \
		time motd userhost users whois ison lusers user help \
		challenge map pass error knock ping pong authflags \
		chghost chgident webirc bopm
all:
build:
clean:
depend:

install: 
	@echo installing help files...
	-@if test ! -d $(prefix)/help; then \
		echo "mkdir $(prefix)/help"; \
		mkdir $(prefix)/help; \
		echo "mkdir $(prefix)/help/users"; \
		mkdir $(prefix)/help/users; \
		echo "mkdir $(prefix)/help/opers"; \
		mkdir $(prefix)/help/opers; \
	fi
	@for help in opers/*; do \
	if [ -f $$help ]; then \
		${INSTALL_DATA} $$help $(ohelpdir); \
	fi \
	done
	@for help in users/*; do \
	if [ -f $$help ]; then \
		$(INSTALL_DATA) $$help $(uhelpdir); \
	fi \
	done
	@for link in $(SYMLINKS); do \
		rm -f $(uhelpdir)/$$link; \
		ln -s $(ohelpdir)/$$link $(uhelpdir); \
	done

distclean:
	${RM} -f Makefile

depend:
